package com.zheng.wc.dao.model;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;
import com.zheng.common.base.PageEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2018-04-23
 */
@TableName("wc_notice_user")
public class WcNoticeUser extends PageEntity {

    private static final long serialVersionUID = 1L;

	private Integer id;
	@TableField("notice_id")
	private Integer noticeId;
	@TableField("user_id")
	private Integer userId;
    /**
     * 是否已读 0未读 1已读
     */
	@TableField("read_flag")
	private Boolean readFlag;
	@TableField("read_time")
	private Date readTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNoticeId() {
		return noticeId;
	}

	public void setNoticeId(Integer noticeId) {
		this.noticeId = noticeId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Boolean getReadFlag() {
		return readFlag;
	}

	public void setReadFlag(Boolean readFlag) {
		this.readFlag = readFlag;
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}

	@Override
	protected Serializable pkVal() {
		return id;
	}

	@Override
	public String toString() {
		return "WcNoticeUser{" +
			"id=" + id +
			", noticeId=" + noticeId +
			", userId=" + userId +
			", readFlag=" + readFlag +
			", readTime=" + readTime +
			"}";
	}
}
